<?php

class ConstraintMess extends CWidget
{
	public function run()
	{
		if(!isset($_GET['constraintMess'])||trim($_GET['constraintMess'])=='') return false;
		$dc=Yii::app()->params['delete_constraint'];
		$erro=explode(',',$_GET['constraintMess']);	
		$error_mess='';	
		foreach($erro as $val){
			$error_mess.='此条信息与 '.$dc[$this->controller->getId()][$val]['table_name'].' 内的信息有关联，请修改或删除该信息后进行此删除操作!\n';
		}
		unset($_GET['constraintMess']);
		$this->render('constraintMess',array('error_mess'=>$error_mess));
	}
}